import {SAVE_DATA, SAVE_RUNNING_DATA} from "./const";

const initState = {};

export default function reducer(state = initState, {type, payload}) {
  switch (type) {
    case SAVE_DATA:
      return {...state, ...payload};
    case SAVE_RUNNING_DATA:
      return {...state, ...payload};
    default:
      return state;
  }
}
